<include file="public@header"/>
<style type="text/css">
    .cardBox {
        width: 200px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        text-align: center;
        float: left;
        margin-right: 10px;
        padding: 5px;
        padding-top: 15px;
    }

    .headerBox {
        color: #fff;
        padding: 10px;
        font-size: 15px;
        height: 90px;
    }

    .bodyBox {
        padding: 10px;
    }

    .bodyBox p {
        margin-left: 5px;
    }
</style>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>暂定决算单</a></li>
        <li><a href="{:url('team/add',array('id'=>$id,'type'=>1))}">班组决算新增</a></li>
        <li><a href="{:url('team/add',array('id'=>$id,'type'=>2))}">施工供应商决算新增</a></li>
        <li><a href="{:url('team/add',array('id'=>$id,'type'=>3))}">采购供应商决算新增</a></li>
    </ul>

    <div style="display: block;clear:both">
        <div class="cardBox" style="margin-bottom: 60px">
            <div class="headerBox" style="background-color: #006fc4;">
                <p>
                    《决算总价》: <span style="color: #ffffff">{$all}</span>￥
                </p>
            </div>
        </div>

        <div class="cardBox" style="margin-bottom: 60px">
            <div class="headerBox" style="background-color: #006fc4;">
                <p>
                    《已支付》: <span style="color: #ffffff">{$back}</span>￥
                </p>
            </div>
        </div>

        <div class="cardBox" style="margin-bottom: 60px">
            <div class="headerBox" style="background-color: #006fc4;">
                <p>
                    《余款》 : <span style="color: #ffffff">{$sign}</span>￥
                </p>
            </div>
        </div>
    </div>




    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>暂定总价</th>
                <th>决算总价</th>
                <th>已支付</th>
                <th>余款</th>
                <th>属性</th>
                <th>班组/供应商</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v">
                <tr>
                    <td>{$v.tempPrice}</td>
                    <td>{$v.deciPrice}</td>
                    <td>{$v.pay}</td>
                    <td>{$v.bance}</td>
                    <td>
                        <if condition="$v['type'] eq 1">
                            <span class="label label-success">班组</span>
                            <else/>
                            <span class="label label-danger">供应商</span>
                        </if>
                    </td>
                    <td>{$v.lname}</td>
                    <td>
                        <a class="btn btn-xs btn-primary js-ajax-submit"
                           href="{:url('team/see',array('id'=>$v.id))}">查看详情</a>

                        <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                           href="{:url('team/del',array('id'=>$v.id))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>